// source --> /js/slick/slick.min.js /* _ _ _ _ ___| (_) ___| | __ (_)___ / __| | |/ __| |/ / | / __| \__ \ | | (__| < _ | \__ \ |___/_|_|\___|_|\_(_)/ |___/ |__/ Version: 1.5.9 Author: Ken Wheeler Website: http://kenwheeler.github.io Docs: http://kenwheeler.github.io/slick Repo: http://github.com/kenwheeler/slick Issues: http://github.com/kenwheeler/slick/issues */ !function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(a,b){return'"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!1,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.hidden="hidden",e.paused=!1,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,f,d),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0),e.checkResponsive(!0)}var b=0;return c}(),b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.asNavFor=function(b){var c=this,d=c.options.asNavFor;d&&null!==d&&(d=a(d).not(c.$slider)),null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer),a.slideCount>a.options.slidesToShow&&a.paused!==!0&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this;a.options.infinite===!1?1===a.direction?(a.currentSlide+1===a.slideCount-1&&(a.direction=0),a.slideHandler(a.currentSlide+a.options.slidesToScroll)):(a.currentSlide-1===0&&(a.direction=1),a.slideHandler(a.currentSlide-a.options.slidesToScroll)):a.slideHandler(a.currentSlide+a.options.slidesToScroll)},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(d='",b.$dots=a(d).appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('
').appendTo(b.$slider):b.$slides.wrapAll('
').parent(),b.$list=b.$slideTrack.wrap('
').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;cd.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.target);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(ab.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.$list.off("mouseenter.slick",a.proxy(b.setPaused,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.setPaused,b,!1)),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.html(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;bb.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.setPaused,b,!0)).on("mouseleave.slick",a.proxy(b.setPaused,b,!1))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.$list.on("mouseenter.slick",a.proxy(b.setPaused,b,!0)),b.$list.on("mouseleave.slick",a.proxy(b.setPaused,b,!1)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show(),a.options.autoplay===!0&&a.autoPlay()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:"next"}}))},b.prototype.lazyLoad=function(){function g(b){a("img[data-lazy]",b).each(function(){var b=a(this),c=a(this).attr("data-lazy"),d=document.createElement("img");d.onload=function(){b.animate({opacity:0},100,function(){b.attr("src",c).animate({opacity:1},200,function(){b.removeAttr("data-lazy").removeClass("slick-loading")})})},d.src=c})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=e+b.options.slidesToShow,b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.paused=!1,a.autoPlay()},b.prototype.postSlide=function(a){var b=this;b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay===!0&&b.paused===!1&&b.autoPlay(),b.options.accessibility===!0&&b.initADA()},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(){var c,d,b=this;c=a("img[data-lazy]",b.$slider).length,c>0&&(d=a("img[data-lazy]",b.$slider).first(),d.attr("src",null),d.attr("src",d.attr("data-lazy")).removeClass("slick-loading").load(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad(),b.options.adaptiveHeight===!0&&b.setPosition()}).error(function(){d.removeAttr("data-lazy"),b.progressiveLazyLoad()}))},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,c.options.infinite||(c.slideCount<=c.options.slidesToShow?c.currentSlide=0:c.currentSlide>e&&(c.currentSlide=e)),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses(0),b.setPosition(),b.$slider.trigger("reInit",[b]),b.options.autoplay===!0&&b.focusHandler()},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(b,c,d){var f,g,e=this;if("responsive"===b&&"array"===a.type(c))for(g in c)if("array"!==a.type(e.options.responsive))e.options.responsive=[c[g]];else{for(f=e.options.responsive.length-1;f>=0;)e.options.responsive[f].breakpoint===c[g].breakpoint&&e.options.responsive.splice(f,1),f--;e.options.responsive.push(c[g])}else e.options[b]=c;d===!0&&(e.unload(),e.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-ab.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.setPaused=function(a){var b=this;b.options.autoplay===!0&&b.options.pauseOnHover===!0&&(b.paused=a,a?b.autoPlayClear():b.autoPlay())},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d); }):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay===!0&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"left":"right":"vertical"},b.prototype.swipeEnd=function(a){var c,b=this;if(b.dragging=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe)switch(b.swipeDirection()){case"left":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.slideHandler(c),b.currentDirection=0,b.touchObject={},b.$slider.trigger("swipe",[b,"left"]);break;case"right":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.slideHandler(c),b.currentDirection=1,b.touchObject={},b.$slider.trigger("swipe",[b,"right"])}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return 1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;document[a.hidden]?(a.paused=!0,a.autoPlayClear()):a.options.autoplay===!0&&(a.paused=!1,a.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.focusHandler=function(){var b=this;b.$slider.on("focus.slick blur.slick","*",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.isPlay&&(d.is(":focus")?(b.autoPlayClear(),b.paused=!0):(b.paused=!1,b.autoPlay()))},0)})},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}}); // source --> /js/loading.js $(function(){ $('head').append( '' ); jQuery.event.add(window,"load",function(){ //alert("on"); //var pageH = $("#wrapper.top").height(); var pageH = 100; $("#fade").css("height",pageH + "%").delay(2100).fadeOut(1500); $("#loader").delay(1200).animate({ top:"48%", opacity:0 },800); $("#wrapper.top").css("display","block"); /*$(window).load(function(){ $.cookie("access","foo",{expires:1}); });*/ }); }); // source --> /js/jquery.bcat.bgswitcher.js /** * bcat BG Switcher - unobtrusive background image switcher * @version 2.1.1 * @jQuery version 1.2+ * @author Yuriy Davats http://www.bcat.eu * @copyright Yuriy Davats * @modified by Frank Lamozik (LDSign) */ ; (function($, window, document, undefined) { // Default options var pluginName = "bcatBGSwitcher", defaults = { urls: [], // urls array, should contain at least one image url // Instead of strings this array can also contain objects with custom data, // in this case each object must contain an src property with image url startIndex: 0, // first image loaded autoplay: true, // change image every [timeout] ms timeout: 6000, // time between image changes alt: 'Picture', // alt for consistency speed: 3000, // animation speed links: false, // generate a link for each image prevnext: false, // generate previous and next links fadeFirst: true, // fade in first image preserveState: false, // save state to cookie, requires jQuery Cookie Plugin (https://github.com/carhartl/jquery-cookie) cookie: 'bcatBGSwitcher', // name of the cookie if state saving is enabled // callback after first image is loaded, "this" variable contains the image element onFirstImageLoad: function() { }, /** * Callback after init function is done * * "this" variable contains plugin element * @param options - plugin options object * @param instance - plugin instance object */ onInitComplete: function(options, instance) { }, /** * Callback on generation of each navigation link * * "this" variable contains plugin instance object * @param $link - jQuery object with the current link * @param index - current urls array index * @param url - the url of the specific image */ onGenerateEachLink: function($link, index, url) { }, /** * Callback on generation of each image * only called if objects instead of strings passed in urls array * * "this" variable contains plugin instance object * @param $html - jQuery object with the generated image html * @param data - data object for the current image (passed in urls array) * * @returns desired custom HTML to show instead of plain image */ onGenerateEachImage: function($html, data) { return $html; }, /** * Callback to call instead of using standard logic when changing between old and new elements. * Must remain null if default logic to be used. * * JS default "this" variable * @param options - plugin options object * @param $current - jQuery instance for the current element * @param $next - jQuery instance for the current element */ overrideChangeElement: null, }; // Plugin constructor function Plugin(element, options) { this._defaults = defaults; this._name = pluginName; this.init(element, options); } Plugin.prototype = { init: function(element, options) { var instance = {}; if (options.preserveState && $.cookie == undefined) { console.log('Preserve state option requires cookie plugin (https://github.com/carhartl/jquery-cookie)'); options.preserveState = false; } if (options.preserveState) { if ($.cookie(options.cookie) != undefined) { options.startIndex = $.cookie(options.cookie); } } instance.currentIndex = options.startIndex; instance.currentImage = this.preloadImage(element, options, instance.currentIndex); // fix scope var that = this; // append image on load and start the slide show var domElement = this.getDomElement(instance.currentImage); instance.currentImage.img.load(function() { domElement.appendTo(element); if (options.fadeFirst) { domElement.fadeIn(options.speed); } else { domElement.show(); } instance.currentIndex++; // trigger onFirstImageLoad event options.onFirstImageLoad.call(this); if (options.urls[instance.currentIndex]) { if ((options.links) || (options.prevnext)) { var loaderDiv = $('
').attr({ 'id': element.id + '-loader', 'style': 'display: none;' }); loaderDiv.appendTo(element); } if (options.links) { that.generateLinks(element, options, instance); } if (options.prevnext) { that.generatePrevNext(element, options, instance); } if (options.autoplay) { that.runSlideShow(element, options, instance); } } // trigger onInitComplete event options.onInitComplete.call(element, options, instance); }); }, runSlideShow: function(element, options, instance) { // fix scope var that = this; // update image periodically instance.intervalId = setInterval(function() { that.updateImage(element, options, instance); }, options.timeout); }, updateImage: function(element, options, instance) { // load an image and add it to DOM or show the new one and hide the previous one // set index to 0 at the end of array if (!options.urls[instance.currentIndex]) { instance.currentIndex = 0; } var nextImage = $('#' + element.id + instance.currentIndex); if (nextImage.length) { // image found in DOM, changing visibility var currentDomElement = this.getDomElement(instance.currentImage); this.changeElement(options, currentDomElement, nextImage); } else { // image was not loaded yet, loading and showing it nextImage = this.preloadImage(element, options, instance.currentIndex); this.swapPreloadedImages(instance.currentImage, nextImage, element, options); } if (options.links) { this.setActiveLink(element, options, instance); } if (options.preserveState) { $.cookie(options.cookie, instance.currentIndex); } instance.currentImage = nextImage; instance.currentIndex++; }, preloadImage: function(element, options, index, style) { // preload image and return it as a jQuery object // optionally process provided data object and generate custom html if (!style) { style = 'display: none;'; } var imageUrl = options.urls[index], imageAlt = options.alt, html = ''; if (typeof imageUrl === 'object') { var generateCustomHTML = true; // overwrite alt variable if alt property passed if(imageUrl.alt) { imageAlt = imageUrl.alt; } // overwrite image url variable if(imageUrl.src) { imageUrl = imageUrl.src; } else { console.log('Please provide an src property for every object in urls array.'); generateCustomHTML = false; } } var img = $(''); img.attr({ 'id': element.id + index, 'src': imageUrl, 'alt': imageAlt, 'style': style }); if (generateCustomHTML) { html = this.processCustomHTML(element, options, index, img); } return { 'img': img, 'html': html }; }, swapPreloadedImages: function(currentImage, nextImage, element, options, showLoader) { // swap images on load var currentDomElement = this.getDomElement(currentImage); var nextDomElement = this.getDomElement(nextImage); var that = this; if (showLoader) { // show loader $(element).addClass('loading'); } nextImage.img.load(function() { if (showLoader) { // hide loader $(element).removeClass('loading'); } nextDomElement.appendTo(element); that.changeElement(options, currentDomElement, nextDomElement); }); }, generateLinks: function(element, options, instance) { // generate image links on load instance.linkParent = $('
'); instance.linkParent.attr({ 'id': element.id + '-navigation', 'style': 'display: none;' }); // fix scope var that = this; $.each(options.urls, function(index, value) { var link = $(''); var linkClass = ''; if (index === options.startIndex) { linkClass = 'active'; } link.attr({ 'id': element.id + '-link' + index, 'href': '#', 'class': linkClass }); link.click(function(event) { event.preventDefault(); that.switchImageTo(element, options, instance, index); }); // trigger onGenerateEachLink event options.onGenerateEachLink.call(instance, link, index, value); instance.linkParent.append(link); }); instance.linkParent.appendTo(element); instance.linkParent.fadeIn(options.speed); }, generatePrevNext: function(element, options, instance) { // generate previous / next links on load instance.prevnextParent = $('
'); instance.prevnextParent.attr({ 'id': element.id + '-prevnext-wrapper', 'style': 'display: none;' }); // fix scope var that = this; var linkPrevious = $(''); linkPrevious.attr({ 'id': element.id + '-previous-link', 'href': '#', 'class': element.id + '-prevnext-link' }); linkPrevious.click(function(event) { event.preventDefault(); var index = instance.currentIndex - 2; // set index to last one at the beginning of array if (!options.urls[index]) { index = options.urls.length - 1; } that.switchImageTo(element, options, instance, index); }); instance.prevnextParent.append(linkPrevious); var linkNext = $(''); linkNext.attr({ 'id': element.id + '-next-link', 'href': '#', 'class': element.id + '-prevnext-link' }); linkNext.click(function(event) { event.preventDefault(); var index = instance.currentIndex; // set index to last element at the beginning of array if (!options.urls[index]) { index = 0; } that.switchImageTo(element, options, instance, index); }); instance.prevnextParent.append(linkNext); instance.prevnextParent.appendTo(element); instance.prevnextParent.fadeIn(options.speed); }, switchImageTo: function(element, options, instance, index) { // switch to the given image using array index and reset slideshow if (!options.urls[index]) { console.log('can not switch to a non-existent element'); return; } var nextImage = $('#' + element.id + index); var currentDomElement = this.getDomElement(instance.currentImage); // prevent action on active image if (nextImage.attr('id') !== currentDomElement.attr('id')) { instance.currentIndex = index; // stop slide show if (options.autoplay) { clearInterval(instance.intervalId); } if (nextImage.length) { // image found in DOM, changing visibility this.changeElement(options, currentDomElement, nextImage); } else { // image was not loaded yet, loading and showing it nextImage = this.preloadImage(element, options, instance.currentIndex); this.swapPreloadedImages(instance.currentImage, nextImage, element, options, true); } if (options.links) { this.setActiveLink(element, options, instance); } instance.currentImage = nextImage; instance.currentIndex++; // fix scope var that = this; // run slideshow again if (options.autoplay) { instance.intervalId = setInterval(function() { that.updateImage(element, options, instance); }, options.timeout); } } }, setActiveLink: function(element, options, instance) { // set active class to the currently active link if (instance.linkParent.length) { instance.linkParent.find('a').removeClass('active'); instance.linkParent.find('a#' + element.id + '-link' + instance.currentIndex).addClass('active'); } }, processCustomHTML: function(element, options, index, img) { var html = $('
'), data = options.urls[index]; // swap id for image and parent html element for other methods to use it html.attr('id', img.attr('id')); img.attr('id', element.id + "-image-" + index); // move default inline styles as well html.attr('style', img.attr('style')); img.removeAttr('style'); // add a class to the container element html.addClass(element.id + "-html"); html.append(img); html = options.onGenerateEachImage.call(this, html, data); return html; }, changeElement: function(options, current, next) { // switch from current element to the next one if(options.overrideChangeElement === null) { current.fadeOut(options.speed); next.fadeIn(options.speed); return; } // there is an overrideChangeElement - trigger the callback options.overrideChangeElement(options, current, next); }, getDomElement: function(imageObject) { // get dom element for the current image instance with fallback for BC // needed to isolate consistency issues between image only and custom html states if (imageObject instanceof jQuery) { // fallback to existing dom element found by id return imageObject; } // check for preloaded images attributes var returnObject = (imageObject.html.length) ? imageObject.html : imageObject.img; return returnObject; } }; // Plugin wrapper preventing against multiple instantiations $.fn[pluginName] = function(options) { return this.each(function() { if (!$.data(this, "plugin_" + pluginName)) { var localOptions = $.extend({}, defaults, options); $.data(this, "plugin_" + pluginName, new Plugin(this, localOptions)); } }); }; })(jQuery, window, document); // source --> /js/vegas.js (function ($) { 'use strict'; var defaults = { slide: 0, delay: 5000, preload: false, preloadImage: false, preloadVideo: false, timer: true, overlay: false, autoplay: true, shuffle: false, cover: true, color: null, align: 'center', valign: 'center', transition: 'fade', transitionDuration: 1000, transitionRegister: [], animation: null, animationDuration: 'auto', animationRegister: [], init: function () {}, play: function () {}, pause: function () {}, walk: function () {}, slides: [ // { // src: null, // color: null, // delay: null, // align: null, // valign: null, // transition: null, // transitionDuration: null, // animation: null, // animationDuration: null, // cover: true, // video: { // src: [], // mute: true, // loop: true // } // ... ] }; var videoCache = {}; var Vegas = function (elmt, options) { this.elmt = elmt; this.settings = $.extend({}, defaults, $.vegas.defaults, options); this.slide = this.settings.slide; this.total = this.settings.slides.length; this.noshow = this.total < 2; this.paused = !this.settings.autoplay || this.noshow; this.$elmt = $(elmt); this.$timer = null; this.$overlay = null; this.$slide = null; this.timeout = null; this.transitions = [ 'fade', 'fade2', 'blur', 'blur2', 'flash', 'flash2', 'negative', 'negative2', 'burn', 'burn2', 'slideLeft', 'slideLeft2', 'slideRight', 'slideRight2', 'slideUp', 'slideUp2', 'slideDown', 'slideDown2', 'zoomIn', 'zoomIn2', 'zoomOut', 'zoomOut2', 'swirlLeft', 'swirlLeft2', 'swirlRight', 'swirlRight2' ]; this.animations = [ 'kenburns', 'kenburnsLeft', 'kenburnsRight', 'kenburnsUp', 'kenburnsUpLeft', 'kenburnsUpRight', 'kenburnsDown', 'kenburnsDownLeft', 'kenburnsDownRight' ]; if (this.settings.transitionRegister instanceof Array === false) { this.settings.transitionRegister = [ this.settings.transitionRegister ]; } if (this.settings.animationRegister instanceof Array === false) { this.settings.animationRegister = [ this.settings.animationRegister ]; } this.transitions = this.transitions.concat(this.settings.transitionRegister); this.animations = this.animations.concat(this.settings.animationRegister); this.support = { objectFit: 'objectFit' in document.body.style, transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style, video: $.vegas.isVideoCompatible() }; if (this.settings.shuffle === true) { this.shuffle(); } this._init(); }; Vegas.prototype = { _init: function () { var $wrapper, $overlay, $timer, isBody = this.elmt.tagName === 'BODY', timer = this.settings.timer, overlay = this.settings.overlay, self = this; // Preloading this._preload(); // Wrapper with content if (!isBody) { this.$elmt.css('height', this.$elmt.css('height')); $wrapper = $('
') .css('overflow', this.$elmt.css('overflow')) .css('padding', this.$elmt.css('padding')); // Some browsers don't compute padding shorthand if (!this.$elmt.css('padding')) { $wrapper .css('padding-top', this.$elmt.css('padding-top')) .css('padding-bottom', this.$elmt.css('padding-bottom')) .css('padding-left', this.$elmt.css('padding-left')) .css('padding-right', this.$elmt.css('padding-right')); } this.$elmt.clone(true).children().appendTo($wrapper); this.elmt.innerHTML = ''; } // Timer if (timer && this.support.transition) { $timer = $('
'); this.$timer = $timer; this.$elmt.prepend($timer); } // Overlay if (overlay) { $overlay = $('
'); if (typeof overlay === 'string') { $overlay.css('background-image', 'url(' + overlay + ')'); } this.$overlay = $overlay; this.$elmt.prepend($overlay); } // Container this.$elmt.addClass('vegas-container'); if (!isBody) { this.$elmt.append($wrapper); } setTimeout(function () { self.trigger('init'); self._goto(self.slide); if (self.settings.autoplay) { self.trigger('play'); } }, 1); }, _preload: function () { var img, i; for (i = 0; i < this.settings.slides.length; i++) { if (this.settings.preload || this.settings.preloadImages) { if (this.settings.slides[i].src) { img = new Image(); img.src = this.settings.slides[i].src; } } if (this.settings.preload || this.settings.preloadVideos) { if (this.support.video && this.settings.slides[i].video) { if (this.settings.slides[i].video instanceof Array) { this._video(this.settings.slides[i].video); } else { this._video(this.settings.slides[i].video.src); } } } } }, _random: function (array) { return array[Math.floor(Math.random() * array.length)]; }, _slideShow: function () { var self = this; if (this.total > 1 && !this.paused && !this.noshow) { this.timeout = setTimeout(function () { self.next(); }, this._options('delay')); } }, _timer: function (state) { var self = this; clearTimeout(this.timeout); if (!this.$timer) { return; } this.$timer .removeClass('vegas-timer-running') .find('div') .css('transition-duration', '0ms'); if (this.paused || this.noshow) { return; } if (state) { setTimeout(function () { self.$timer .addClass('vegas-timer-running') .find('div') .css('transition-duration', self._options('delay') - 100 + 'ms'); }, 100); } }, _video: function (srcs) { var video, source, cacheKey = srcs.toString(); if (videoCache[cacheKey]) { return videoCache[cacheKey]; } if (srcs instanceof Array === false) { srcs = [ srcs ]; } video = document.createElement('video'); video.preload = true; srcs.forEach(function (src) { source = document.createElement('source'); source.src = src; video.appendChild(source); }); videoCache[cacheKey] = video; return video; }, _fadeOutSound: function (video, duration) { var self = this, delay = duration / 10, volume = video.volume - 0.09; if (volume > 0) { video.volume = volume; setTimeout(function () { self._fadeOutSound(video, duration); }, delay); } else { video.pause(); } }, _fadeInSound: function (video, duration) { var self = this, delay = duration / 10, volume = video.volume + 0.09; if (volume < 1) { video.volume = volume; setTimeout(function () { self._fadeInSound(video, duration); }, delay); } }, _options: function (key, i) { if (i === undefined) { i = this.slide; } if (this.settings.slides[i][key] !== undefined) { return this.settings.slides[i][key]; } return this.settings[key]; }, _goto: function (nb) { if (typeof this.settings.slides[nb] === 'undefined') { nb = 0; } this.slide = nb; var $slide, $inner, $video, $slides = this.$elmt.children('.vegas-slide'), src = this.settings.slides[nb].src, videoSettings = this.settings.slides[nb].video, delay = this._options('delay'), align = this._options('align'), valign = this._options('valign'), cover = this._options('cover'), color = this._options('color') || this.$elmt.css('background-color'), self = this, total = $slides.length, video, img; var transition = this._options('transition'), transitionDuration = this._options('transitionDuration'), animation = this._options('animation'), animationDuration = this._options('animationDuration'); if (cover !== 'repeat') { if (cover === true) { cover = 'cover'; } else if (cover === false) { cover = 'contain'; } } if (transition === 'random' || transition instanceof Array) { if (transition instanceof Array) { transition = this._random(transition); } else { transition = this._random(this.transitions); } } if (animation === 'random' || animation instanceof Array) { if (animation instanceof Array) { animation = this._random(animation); } else { animation = this._random(this.animations); } } if (transitionDuration === 'auto' || transitionDuration > delay) { transitionDuration = delay; } if (animationDuration === 'auto') { animationDuration = delay; } $slide = $('
'); if (this.support.transition && transition) { $slide.addClass('vegas-transition-' + transition); } // Video if (this.support.video && videoSettings) { if (videoSettings instanceof Array) { video = this._video(videoSettings); } else { video = this._video(videoSettings.src); } video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true; video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true; if (video.muted === false) { video.volume = 0; this._fadeInSound(video, transitionDuration); } else { video.pause(); } $video = $(video) .addClass('vegas-video') .css('background-color', color); if (this.support.objectFit) { $video .css('object-position', align + ' ' + valign) .css('object-fit', cover) .css('width', '100%') .css('height', '100%'); } else if (cover === 'contain') { $video .css('width', '100%') .css('height', '100%'); } $slide.append($video); // Image } else { img = new Image(); $inner = $('
') .css('background-image', 'url(' + src + ')') .css('background-color', color) .css('background-position', align + ' ' + valign); if (cover === 'repeat') { $inner.css('background-repeat', 'repeat'); } else { $inner.css('background-size', cover); } if (this.support.transition && animation) { $inner .addClass('vegas-animation-' + animation) .css('animation-duration', animationDuration + 'ms'); } $slide.append($inner); } if (!this.support.transition) { $slide.css('display', 'none'); } if (total) { $slides.eq(total - 1).after($slide); } else { this.$elmt.prepend($slide); } self._timer(false); function go () { self._timer(true); setTimeout(function () { if (transition) { if (self.support.transition) { $slides .css('transition', 'all ' + transitionDuration + 'ms') .addClass('vegas-transition-' + transition + '-out'); $slides.each(function () { var video = $slides.find('video').get(0); if (video) { video.volume = 1; self._fadeOutSound(video, transitionDuration); } }); $slide .css('transition', 'all ' + transitionDuration + 'ms') .addClass('vegas-transition-' + transition + '-in'); } else { $slide.fadeIn(transitionDuration); } } for (var i = 0; i < $slides.length - 4; i++) { $slides.eq(i).remove(); } self.trigger('walk'); self._slideShow(); }, 100); } if (video) { if (video.readyState === 4) { video.currentTime = 0; } video.play(); go(); } else { img.src = src; img.onload = go; } }, shuffle: function () { var temp, rand; for (var i = this.total - 1; i > 0; i--) { rand = Math.floor(Math.random() * (i + 1)); temp = this.settings.slides[i]; this.settings.slides[i] = this.settings.slides[rand]; this.settings.slides[rand] = temp; } }, play: function () { if (this.paused) { this.paused = false; this.next(); this.trigger('play'); } }, pause: function () { this._timer(false); this.paused = true; this.trigger('pause'); }, toggle: function () { if (this.paused) { this.play(); } else { this.pause(); } }, playing: function () { return !this.paused && !this.noshow; }, current: function (advanced) { if (advanced) { return { slide: this.slide, data: this.settings.slides[this.slide] }; } return this.slide; }, jump: function (nb) { if (nb < 0 || nb > this.total - 1 || nb === this.slide) { return; } this.slide = nb; this._goto(this.slide); }, next: function () { this.slide++; if (this.slide >= this.total) { this.slide = 0; } this._goto(this.slide); }, previous: function () { this.slide--; if (this.slide < 0) { this.slide = this.total - 1; } this._goto(this.slide); }, trigger: function (fn) { var params = []; if (fn === 'init') { params = [ this.settings ]; } else { params = [ this.slide, this.settings.slides[this.slide] ]; } this.$elmt.trigger('vegas' + fn, params); if (typeof this.settings[fn] === 'function') { this.settings[fn].apply(this.$elmt, params); } }, options: function (key, value) { var oldSlides = this.settings.slides.slice(); if (typeof key === 'object') { this.settings = $.extend({}, defaults, $.vegas.defaults, key); } else if (typeof key === 'string') { if (value === undefined) { return this.settings[key]; } this.settings[key] = value; } else { return this.settings; } // In case slides have changed if (this.settings.slides !== oldSlides) { this.total = this.settings.slides.length; this.noshow = this.total < 2; this._preload(); } }, destroy: function () { clearTimeout(this.timeout); this.$elmt.removeClass('vegas-container'); this.$elmt.find('> .vegas-slide').remove(); this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt); this.$elmt.find('> .vegas-wrapper').remove(); if (this.settings.timer) { this.$timer.remove(); } if (this.settings.overlay) { this.$overlay.remove(); } this.elmt._vegas = null; } }; $.fn.vegas = function(options) { var args = arguments, error = false, returns; if (options === undefined || typeof options === 'object') { return this.each(function () { if (!this._vegas) { this._vegas = new Vegas(this, options); } }); } else if (typeof options === 'string') { this.each(function () { var instance = this._vegas; if (!instance) { throw new Error('No Vegas applied to this element.'); } if (typeof instance[options] === 'function' && options[0] !== '_') { returns = instance[options].apply(instance, [].slice.call(args, 1)); } else { error = true; } }); if (error) { throw new Error('No method "' + options + '" in Vegas.'); } return returns !== undefined ? returns : this; } }; $.vegas = {}; $.vegas.defaults = defaults; $.vegas.isVideoCompatible = function () { return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent); }; })(window.jQuery || window.Zepto); // source --> /js/top.js $(function(){ $('.keyvisual').slick({ autoplay:true, fade:true, autoplaySpeed:3000, dots:true, pauseOnHover:true }); if (window.matchMedia( "screen and (min-width: 900px)" ).matches) { $('.js-fade').css('visibility','hidden'); $(window).scroll(function(){ var windowHeight = $(window).height(); topWindow = $(window).scrollTop(); $('.js-fade').each(function(){ var targetPosition = $(this).offset().top; if(topWindow > targetPosition - windowHeight + 220){ $(this).addClass("fadeInDown"); } }); }); } hsize = $(window).height(); $("#main-images").css("height", hsize + "px"); $(window).resize(function () { hsize = $(window).height(); $("#main-images").css("height", hsize + "px"); }); $('#main-images').vegas({ overlay: true, transition: 'flash', transitionDuration: 2000, delay: 10000, animation: 'random', animationDuration: 20000, slides: [ { src: './img/visual01.png' }, { src: './img/visual02.png' }, { src: './img/visual03.png' } ] }); /*アクセスランキングナンバリング*/ var rankcount = 1; $('.icon-rank').each(function() { $(this).prepend("

" + rankcount + "

"); rankcount++; }); title(); function title(){ $('.js-anime-maintitile').velocity( { //width: '50px', //height: '50px', //backgroundColor: '#000000', delay:'700', opacity:'1', translateX: '+=0px', translateY: '+=20px' }, { // Option duration:850, // アニメーション時間 easing: 'ease-out', // イージング : linear, swing, ease, ease-in, ease-out, ease-in-out, [200, 15] //begin: function(){console.log('start');}, // or null progress: null, // 進捗率 //complete: function(){console.log('end');}, // or null //loop: 1, // 繰り返し : or false delay: 800, // 開始、ループ時に遅延させる Ex.1000 display: 'block' // 表示・非表示 : false, 'none', 'block' } ); $('.subtitle').velocity( { delay:'1400', opacity:'1', }, { // Option duration:1200, easing: 'ease-out', progress: null, delay: 2100, display: 'block' } ); } /* フェードイン var srcBgArray = ["./img/visual01.png","./img/visual02.png","./img/visual03.png"]; $('#main-images').bcatBGSwitcher({ urls: srcBgArray, alt: 'Full screen background image' }); */ }); // source --> /js/common.js $(function(){ $('head').append( '' ); $(window).load(function() { $('body').fadeIn(500); }); /*スマフォメニューの色味変更*/ /*$(window).on('scroll',function(){ var $window = $(window); var limit = $('.jsMainImage').outerHeight(); //console.log(limit); if(limit > $window.scrollTop()){ $(".sb-toggle-left").removeClass("slideColor"); } else { $(".sb-toggle-left").addClass("slideColor"); } });*/ /*gnavi*/ var nav = $('.gnavi'); var navTop = nav.offset().top; $('li', nav).hover(function(){ $('ul',this).stop().slideDown('fast'); }, function(){ $('ul',this).stop().slideUp('fast'); }); /*detail img*/ $(".trimming-large").imgLiquid(); $(".ChangePhoto").click(function(){ var ImgSrc = $(this).children("span").data("photo"); var ImgAlt = $(this).attr("alt"); $(".ChangePhoto").removeClass("on"); $(this).addClass("on"); $("#link-img").attr({href:ImgSrc}); $("img#MainPhoto").attr({src:ImgSrc,alt:ImgAlt}); $("img#MainPhoto").show(); $("img#MainPhoto").hide(); setTimeout(function(){ $(".trimming-large").imgLiquid(); },0); return false; }); /*facebook*/ /*var fbUrl = 'https://www.facebook.com/JinyaRamenBar', fbTitle = 'JinyaRamenBar'; $(window).resize(function () { $('#page-plugin').html('
'); window.FB.XFBML.parse(); });*/ }); // source --> /js/imgLiquid-min.js var imgLiquid=imgLiquid||{VER:"0.9.944"};imgLiquid.bgs_Available=!1,imgLiquid.bgs_CheckRunned=!1,imgLiquid.injectCss=".imgLiquid img {visibility:hidden}",function(i){function t(){if(!imgLiquid.bgs_CheckRunned){imgLiquid.bgs_CheckRunned=!0;var t=i('');i("body").append(t),!function(){var i=t[0];if(i&&window.getComputedStyle){var e=window.getComputedStyle(i,null);e&&e.backgroundSize&&(imgLiquid.bgs_Available="cover"===e.backgroundSize)}}(),t.remove()}}i.fn.extend({imgLiquid:function(e){this.defaults={fill:!0,verticalAlign:"center",horizontalAlign:"center",useBackgroundSize:!0,useDataHtmlAttr:!0,responsive:!0,delay:0,fadeInTime:0,removeBoxBackground:!0,hardPixels:!0,responsiveCheckTime:500,timecheckvisibility:500,onStart:null,onFinish:null,onItemStart:null,onItemFinish:null,onItemError:null},t();var a=this;return this.options=e,this.settings=i.extend({},this.defaults,this.options),this.settings.onStart&&this.settings.onStart(),this.each(function(t){function e(){-1===u.css("background-image").indexOf(encodeURI(c.attr("src")))&&u.css({"background-image":'url("'+encodeURI(c.attr("src"))+'")'}),u.css({"background-size":g.fill?"cover":"contain","background-position":(g.horizontalAlign+" "+g.verticalAlign).toLowerCase(),"background-repeat":"no-repeat"}),i("a:first",u).css({display:"block",width:"100%",height:"100%"}),i("img",u).css({display:"none"}),g.onItemFinish&&g.onItemFinish(t,u,c),u.addClass("imgLiquid_bgSize"),u.addClass("imgLiquid_ready"),l()}function d(){function e(){c.data("imgLiquid_error")||c.data("imgLiquid_loaded")||c.data("imgLiquid_oldProcessed")||(u.is(":visible")&&c[0].complete&&c[0].width>0&&c[0].height>0?(c.data("imgLiquid_loaded",!0),setTimeout(r,t*g.delay)):setTimeout(e,g.timecheckvisibility))}if(c.data("oldSrc")&&c.data("oldSrc")!==c.attr("src")){var a=c.clone().removeAttr("style");return a.data("imgLiquid_settings",c.data("imgLiquid_settings")),c.parent().prepend(a),c.remove(),c=a,c[0].width=0,setTimeout(d,10),void 0}return c.data("imgLiquid_oldProcessed")?(r(),void 0):(c.data("imgLiquid_oldProcessed",!1),c.data("oldSrc",c.attr("src")),i("img:not(:first)",u).css("display","none"),u.css({overflow:"hidden"}),c.fadeTo(0,0).removeAttr("width").removeAttr("height").css({visibility:"visible","max-width":"none","max-height":"none",width:"auto",height:"auto",display:"block"}),c.on("error",n),c[0].onerror=n,e(),o(),void 0)}function o(){(g.responsive||c.data("imgLiquid_oldProcessed"))&&c.data("imgLiquid_settings")&&(g=c.data("imgLiquid_settings"),u.actualSize=u.get(0).offsetWidth+u.get(0).offsetHeight/1e4,u.sizeOld&&u.actualSize!==u.sizeOld&&r(),u.sizeOld=u.actualSize,setTimeout(o,g.responsiveCheckTime))}function n(){c.data("imgLiquid_error",!0),u.addClass("imgLiquid_error"),g.onItemError&&g.onItemError(t,u,c),l()}function s(){var i={};if(a.settings.useDataHtmlAttr){var t=u.attr("data-imgLiquid-fill"),e=u.attr("data-imgLiquid-horizontalAlign"),d=u.attr("data-imgLiquid-verticalAlign");("true"===t||"false"===t)&&(i.fill=Boolean("true"===t)),void 0===e||"left"!==e&&"center"!==e&&"right"!==e&&-1===e.indexOf("%")||(i.horizontalAlign=e),void 0===d||"top"!==d&&"bottom"!==d&&"center"!==d&&-1===d.indexOf("%")||(i.verticalAlign=d)}return imgLiquid.isIE&&a.settings.ieFadeInDisabled&&(i.fadeInTime=0),i}function r(){var i,e,a,d,o,n,s,r,m=0,h=0,f=u.width(),v=u.height();void 0===c.data("owidth")&&c.data("owidth",c[0].width),void 0===c.data("oheight")&&c.data("oheight",c[0].height),g.fill===f/v>=c.data("owidth")/c.data("oheight")?(i="100%",e="auto",a=Math.floor(f),d=Math.floor(f*(c.data("oheight")/c.data("owidth")))):(i="auto",e="100%",a=Math.floor(v*(c.data("owidth")/c.data("oheight"))),d=Math.floor(v)),o=g.horizontalAlign.toLowerCase(),s=f-a,"left"===o&&(h=0),"center"===o&&(h=.5*s),"right"===o&&(h=s),-1!==o.indexOf("%")&&(o=parseInt(o.replace("%",""),10),o>0&&(h=.01*s*o)),n=g.verticalAlign.toLowerCase(),r=v-d,"left"===n&&(m=0),"center"===n&&(m=.5*r),"bottom"===n&&(m=r),-1!==n.indexOf("%")&&(n=parseInt(n.replace("%",""),10),n>0&&(m=.01*r*n)),g.hardPixels&&(i=a,e=d),c.css({width:i,height:e,"margin-left":Math.floor(h),"margin-top":Math.floor(m)}),c.data("imgLiquid_oldProcessed")||(c.fadeTo(g.fadeInTime,1),c.data("imgLiquid_oldProcessed",!0),g.removeBoxBackground&&u.css("background-image","none"),u.addClass("imgLiquid_nobgSize"),u.addClass("imgLiquid_ready")),g.onItemFinish&&g.onItemFinish(t,u,c),l()}function l(){t===a.length-1&&a.settings.onFinish&&a.settings.onFinish()}var g=a.settings,u=i(this),c=i("img:first",u);return c.length?(c.data("imgLiquid_settings")?(u.removeClass("imgLiquid_error").removeClass("imgLiquid_ready"),g=i.extend({},c.data("imgLiquid_settings"),a.options)):g=i.extend({},a.settings,s()),c.data("imgLiquid_settings",g),g.onItemStart&&g.onItemStart(t,u,c),imgLiquid.bgs_Available&&g.useBackgroundSize?e():d(),void 0):(n(),void 0)})}})}(jQuery),!function(){var i=imgLiquid.injectCss,t=document.getElementsByTagName("head")[0],e=document.createElement("style");e.type="text/css",e.styleSheet?e.styleSheet.cssText=i:e.appendChild(document.createTextNode(i)),t.appendChild(e)}(); // source --> /js/jquery-scrollInTurn.js /*! * jQuery scrollInTurn plugin -version 1.0.1 * * * Copyright 2014, Mayumi Tanji * Released under the MIT license * http://www.opensource.org/licenses/mit-license.php */ (function( $ ){ $.fn.scrollInTurn = function( options ) { var defaults = $.extend( { selector : '.target', delaySpeed : 300, fadeInSpeed : 500, fadeOutSpeed : 300, easing : 'swing', delayHeight : 400, fadeOutEvent : true }, options); return this.each(function() { var self = $(this); $(window).on('load',function(){ self.find(defaults.selector).css({opacity: 0}); }); $(window).on('load scroll resize',function(){ var target = self.find(defaults.selector); var elmTop = self.offset().top; var scrTop = $(window).scrollTop(); var elmHeight = self.height(); var windowHeight = $(window).height(); if (scrTop > elmTop - defaults.delayHeight || scrTop + windowHeight > elmTop + elmHeight){ if (!self.hasClass('on')) { target.each(function(i){ $(this).delay(i*(defaults.delaySpeed)).animate({opacity:'1'}, defaults.fadeInSpeed, defaults.easing); }); self.addClass('on'); } } if (scrTop + windowHeight < elmTop){ if (self.hasClass('on') && defaults.fadeOutEvent === true) { target.stop(true, true).animate({'opacity': 0}, defaults.fadeOutSpeed, defaults.easing); self.removeClass('on'); } } }); }); }; })( jQuery );